﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data.SqlClient;
using System.Configuration;

public partial class n2 : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    double total, Lable1;
    protected void Button1_Click1(object sender, EventArgs e)
    {
        double total = 0;
        Label11.Text = "";
        if (CheckBox1.Checked)
        {

            Lable1 = double.Parse(CheckBox1.Text) * double.Parse(DropDownList1.Text);

            Label11.Text = Lable1.ToString();
        }
    }
    protected void Button2_Click(object sender, EventArgs e)
    {
        if (Label11.Text == "")
        {
            Label12.Text = "please select you Product";
        }
        else
        {
            Response.Redirect("payment.aspx?Total=" + Server.UrlEncode(Label11.Text));
        }
    }
}